package com.lwz.repair.Thread;

public class MyThread extends java.lang.Thread {
    public MyThread(String name){
        super(name);
    }

    public MyThread(){}

    @Override
    public void run() {
        //获取线程名称
        System.out.println(Thread.currentThread().getName());


    }
}
